﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomePage.Master" AutoEventWireup="true" CodeBehind="NewsDetail.aspx.cs" Inherits="Web.Views.News.NewsDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../../Content/style/News_Detail.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlace" runat="server">
<script language="javascript">
    window.onload = function() {
        document.getElementById("news_v").className = "curr-nav";
    }
    //改变文章字体大小
    function doZoom(size) {
         document.getElementById('articlebody').style.fontSize = size + 'px';
    }
</script>
<div style="width:910px; padding-top:10px;">
<div id="localtion" style="width:100%; text-align:left">
        <span>您的位置： <a href="http://www.easydp.net" target="_blank">容易订票网</a> 
      &gt;&gt; <a href="index.aspx">新闻资讯</a>
             &gt;&gt; <a href="NewsList.aspx?categorykey=<%= this.CategoryKey %>"><%= this.Category %></a> </span>
</div>

<div class="contentR">
<div class="sideR">

<!--最新更新主题--><div class="block">
<h3>最新更新</h3>
<ul class="msgtitlelist">
	<asp:Repeater DataSourceID="odsNewsNewTop" runat="server" ID="Repeater1">
				<ItemTemplate>
								<li>·<a href="NewsDetail.aspx?key=<%# Eval("newsid") %>"  title="<%# Eval("Title") %>"><font color="#333"><%# Eval("Title") %></font></a></li>
                </ItemTemplate>
                </asp:Repeater>
                
</ul>
</div>
<!--图片资讯显示-->
<%--<div class="block">
<h3>本类热点图文资讯</h3>
<ul id="scroller" class="imgthumblist">
</ul>
</div>--%>

<!--月度关注热点--><!--相关资讯-->

</div>
<div class="mainarea">

<div id="articledetail" class="block">

<asp:DetailsView AutoGenerateRows="false" BorderWidth="0" runat="server" ID="dtvNewsDetail" DataSourceID="odsDetali" >
<Fields>
    <asp:TemplateField>
        <ItemTemplate>
        <input type="hidden" value="<%#this.Category = Eval("CategoryText").ToString() %>" />
         <input type="hidden" value="<%#this.CategoryKey = Eval("CategoryID").ToString() %>" />
<h1 class="articletitle" style="color:Black"><%# Eval("AreaText", "{0}：")%><%#Eval("Title") %></h1>
<p class="articleinfo">
<span class="articlectrl">
字号:&nbsp;
<a href="javascript:doZoom('12');">小</a>&nbsp;
<a href="javascript:doZoom('14');">中</a>&nbsp;
<a href="javascript:doZoom('16');">大</a>&nbsp; |
</span>
<span class="smalltxt">发布: <%# Eval("NewsDate","{0:yyyy-MM-dd hh:mm}") %>  &nbsp;&nbsp; 作者: <%# Eval("Author")%> &nbsp;&nbsp; 来源: <%# Eval("Source")%>
 &nbsp;&nbsp; 查看: <%#Eval("Hits") %>次</span>
</p>
<div id="articlebody">
        <%# Eval("ContentInfo") %>
<br />
</div>
  </ItemTemplate>
    </asp:TemplateField>
</Fields>

</asp:DetailsView>
</div>
<div >

</div>
</div>
<!-- /Content -->

</div>
</div>
<div style="clear:both"></div>
<asp:ObjectDataSource ID="odsDetali" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="SelectSingle" 
        TypeName="Easydp.Controllers.NewsController">
        <SelectParameters>
            <asp:QueryStringParameter Name="key" QueryStringField="key" 
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
        <asp:ObjectDataSource ID="odsNewsNewTop" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetIndexNew4" 
        TypeName="Easydp.Controllers.NewsController">
        <SelectParameters>
            <asp:Parameter DefaultValue="12" Name="rows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
